﻿@model OES.Models.Exam
@{
    ViewBag.Title = "Create";
}
<h2>
    Sınav Oluştur</h2>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

        <table>
        <tr>
                <td>
                    @Html.LabelFor(model => model.CourseID)
                </td>
                <td>
                    @Html.DropDownList("CourseID", String.Empty)
                    @Html.ValidationMessageFor(model => model.CourseID)
                </td>
            </tr>
            <tr>
                <td>
                    @Html.LabelFor(model => model.Duration)
                </td>
                <td>
                    @Html.EditorFor(model => model.Duration)
                    @Html.ValidationMessageFor(model => model.Duration)
                </td>
            </tr>
            <tr>
                <td>
                    @Html.LabelFor(model => model.StartTime)
                </td>
                <td>
                    @Html.EditorFor(model => model.StartTime)
                    @Html.ValidationMessageFor(model => model.StartTime)
                </td>
            </tr>
            <tr>
                <td>
                    @Html.LabelFor(model => model.FinishTime)
                </td>
                <td>
                    @Html.EditorFor(model => model.FinishTime)
                    @Html.ValidationMessageFor(model => model.FinishTime)
                </td>
            </tr>
            <tr>
                <td>
                    @Html.LabelFor(model => model.Name)
                </td>
                <td>
                    @Html.EditorFor(model => model.Name)
                    @Html.ValidationMessageFor(model => model.Name)
                </td>
            </tr>
        </table>
        <p>
            <input type="submit" value="Oluştur" class="btn btn-success" />
        </p>
}
<div>
    @Html.ActionLink("Önceki sayfaya dön", "Index")
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
